const { miniProgram } = wx.getAccountInfoSync()

const { envVersion } = miniProgram

let env = {
  baseURL: 'https://smalla.cosh.fun/api'
}

switch (envVersion) {
  case 'develop': 
    env.baseURL = 'https://smalla.cosh.fun/api'
    break
  case 'trial':
    break
  case 'release':
    env.baseURL = 'https://smalla.cosh.fun/api'
    break
}

export {
  env
}